import React from "react";
import { Button } from "antd";
import { PlusOutlined, EditOutlined, DeleteOutlined, DownloadOutlined } from '@ant-design/icons';


/**
 * @description 功能区 例如：新建 导出 等功能
 * @param {config} config 配置可以传入一些需要的其他参数或者元素 注意，此参数是一个Object 对象 
 * */
const getActoinPanel = (config = Object) => {
    const { open = Function } = config;
    const actionConfig = [

        {
            show: true,
            icon: <PlusOutlined />,
            type: "",
            text: "新增",
            onClick: () => open({ actionType: "add" })
        },
    ];
    return actionConfig;
}
export default getActoinPanel;